package com.zmn.oms.services.impl.activity;

import com.zmn.oms.model.entity.activity.OrderActivity;
import com.zmn.oms.persistence.interfaces.activity.OrderActivityDao;
import com.zmn.oms.services.interfaces.activity.OrderActivityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author sunlife
 * @date:2021/9/2 4:33 下午
 * description:
 */
@Service
public class OrderActivityServiceImpl implements OrderActivityService {

    @Resource
    OrderActivityDao orderActivityDao;

    @Override
    public int insert(OrderActivity orderActivity) {
        return orderActivityDao.insertSelective(orderActivity);
    }

    @Override
    public OrderActivity findByOrderId(Long orderId) {
        return orderActivityDao.selectByOrderId(orderId);
    }
}
